# Find installed Eigen2

# find include path
find_path(Eigen2_INCLUDE_DIR
   NAMES Eigen/Eigen
   PATH_SUFFIXES eigen2
   DOC "Eigen2 include path"
)

set(Eigen2_INCLUDE_DIRS ${Eigen2_INCLUDE_DIR})
set(Eigen2_LIBRARIES)

if (Eigen2_INCLUDE_DIR)
   set(Eigen2_FOUND TRUE)
   if (NOT Eigen2_FIND_QUIETLY)
      message (STATUS "Found Eigen2: ${Eigen2_INCLUDE_DIR}")
   endif()
else()
   set(Eigen2_FOUND FALSE)
   if (Eigen2_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find Eigen2")
   endif()
endif()
